<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>图片测试</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <style type="text/css">
        body {
            text-align: center;
        }

        #container {
            flex-direction: row;
            margin: 0 auto;
            max-width: 1200px;
            display: flex;
            flex-wrap: wrap;
        }

        #container img {
            width: 100%;
            align-self: center;
        }

        #container div {
            width: 50%;
        }
    </style>
</head>

<body>
    <a href='/<%= csv%>'><%= csv%></a>
    <div id="container">
        <% if (images.length == 0) {%>
            <script>
                confirm("正在压缩中，请稍后在访问");
            </script>
        <% } else {%>
            <% images.forEach((obj,i)=> {%>
                <% obj.forEach((image,j)=> {%>
                    <div>
                        <img src='/<%= image.image%>'>
                        <span><%= image.image%> <%= image.size%></span>
                    </div>
                <% }) %>
            <% }); %>
        <%}%>
    </div>
</body>

</html>